package com.demo.elasticsearch.repository;


import com.demo.elasticsearch.bean.Book;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;


/**
 * @author bianpengfei
 * @create 2019-02-06 14:58
 **/
public interface BookRepository extends ElasticsearchRepository<Book, Integer> {

     List<Book> findByBookNameLike(String bookName);
}
